package com.ssy.lingxi.platform.template.service.entity.adorn;

import com.ssy.lingxi.platform.template.service.handler.convert.JpaJsonToLongListConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.List;

/**
 * @author lqa
 * @version 2.0.0
 * @date 2021/11/11
 */
@Data
@Entity
@Table(schema = "public", name = "pt_page_template_first_category")
public class PageTemplateFirstCategory {
    /**
     * ID
     */
    @Id
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="page_template_first_category_seq")
    @SequenceGenerator(sequenceName="pt_page_template_first_category_seq", name="page_template_first_category_seq", allocationSize = 1)
    private Long id;

    /**
     * 模板ID
     */
    @Column(columnDefinition = "int8")
    private Long templateId;

    /**
     * 品类ID
     */
    @Column(columnDefinition = "int8")
    private Long categoryId;

    /**
     * 店铺ID
     */
    @Column(columnDefinition = "int8")
    private Long shopId;

    /**
     * 是否展示
     */
    @Column(columnDefinition = "int2 default 1")
    private Integer isShow=1;

    /**
     * 会员ID
     */
    @Column(columnDefinition = "int8")
    private Long memberId;

    /**
     * 角色ID
     */
    @Column(columnDefinition = "int8")
    private Long roleId;

    /**
     * 品类名称
     */
    @Column(columnDefinition = "varchar(100)")
    private String categoryName;

    /**
     * 排序
     */
    @Column(columnDefinition = "int4")
    private Integer sort;
}
